extends "../calxmx_2_1/calxmx_2_1.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "花冠公主"                   # 角色的名称
	lv = 4
	addSkillTxt("[color=#FFFF00][蝶恋花][/color][color=#FFCC22]乱春飞过秋千去，攻击敌方单体，造成210%木系魔法伤害，造成伤害的100%恢复自身[CD:19][/color]")
	addCdSkill("dlh",19)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "dycc":
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("蝶恋花", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		typeHurtCha(aiCha,att.mgiAtk*2.1,Chara.HurtType.MGI,Chara.AtkType.SKILL)
		plusHp(atkInfo.hurtVal)